package com.fate.box

import io.flutter.app.FlutterApplication
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.dart.DartExecutor

class FlutterIMApplication : FlutterApplication() {
    companion object {
        private lateinit var flutterEngine: FlutterEngine

        fun getFlutterEngine(): FlutterEngine {
            return flutterEngine
        }
    }

    override fun onCreate() {
        super.onCreate()
        flutterEngine = FlutterEngine(this)
        flutterEngine.dartExecutor.executeDartEntrypoint(
                DartExecutor.DartEntrypoint.createDefault()
        )
    }
}